<?php
/**
 * 模型
 */
class ModuleAction extends BaseAction{

	protected $model = 'Module';

	protected $msg = '模型';

	/**
	 * 模型列表
	 */
	function index(){
		$where = array();
		foreach($_GET as $key=>$val){
			$this->assign('get_'.$key,$val);
		}
		if(isset($_GET['word']) && !empty($_GET['word']))
			$where['name'] = array('like','%'.$_GET['word'].'%');
		$list = D("Module")->where($where)->order()->select();
		$this->assign('list',$list);
		$this->display('index');
	}

}